package com.kuun.mongo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.query.Param;

import com.kuun.domain.Menu;

public interface MenuRepository extends MongoRepository<Menu, Integer> {
	
	public Menu findByRestaurantNameAndDisheName(String restaurantName,String disheName) ;
	
	public List<Menu> findByRestaurantName(String restaurantName) ;
	
	@Query(value="find({'disheName': ?0})")
	public List<Menu> getInfoByDisheName(@Param("disheName")String disheName) ;
	
}
